package com.jk.api;


import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@RequestMapping("PayService")
@ResponseBody
public interface PayServiceApi {

    //扣款接口
    @PutMapping("payMoney")
    Map payMoney(@RequestParam String id, @RequestParam Integer totalprice);


    /**
     * @param id
     * @author 段卓帆
     * @date 2021/7/8 15:20
     * @return
     */
    //付完款之后修改订单状态为已支付
    @RequestMapping("upStatusById")
    void upStatusById(String id);
}
